package com.dao;

import com.entity.OrdersEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.HashMap;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import org.apache.ibatis.annotations.Param;
import com.entity.vo.OrdersVO;
import com.entity.view.OrdersView;


/**
 * 订单
 *
 * @author
 * @email
 * @date 2021-03-13 12:49:52
 */
public interface OrdersDao extends BaseMapper<OrdersEntity> {

	List<OrdersVO> selectListVO(@Param("ew") Wrapper<OrdersEntity> wrapper);

	OrdersVO selectVO(@Param("ew") Wrapper<OrdersEntity> wrapper);

	List<OrdersView> selectListView(@Param("ew") Wrapper<OrdersEntity> wrapper);

	List<OrdersView> selectListView(Pagination page,@Param("ew") Wrapper<OrdersEntity> wrapper);

	List<OrdersView> selectListView2(Pagination page,@Param("ew") OrdersEntity wrapper);

	HashMap<String, Object> queryTotalPrice(@Param("ew") OrdersEntity wrapper);

	OrdersView selectView(@Param("ew") Wrapper<OrdersEntity> wrapper);

}
